{extend name="public:layout" /}
{block name="title"}上游站点{/block}
{block name="head"}
{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> 上游站点</li>
            </ol>
        </div>
        <div class="ibox-content">
            <div class="row">
                <div class="col-sm-12">
                    <table class="table table-bordered" id="grid">
                        <tr>
                            <th>站点名字</th>
                            <th>公司名称</th>
                            <th>站点电话</th>
                            <th>站点等级</th>
                            <th>站点地址</th>
                            <th>站点状态</th>
                            <th width="120">操作</th>
                        </tr>
                        {volist name="list" id="vo"}
                        <tr>
                            <td>{$vo.site_name}</td>
                            <td>{$vo.company_name}</td>
                            <td>{$vo.site_tel}</td>
                            <td>{for start="0" end="vo.grade_id"}★{/for}</td>
                            <td>{$vo.address}</td>
                            <td>{switch name="vo.site_status" }
                                {case value="0"}关闭{/case}
                                {case value="1"}开启{/case}
                                {case value="2"}审核中{/case}
                                {default /}
                                {/switch}</td>
                            <td>
                                <a href="{:url('del',['uid'=>$vo['uid']])}">取消关注</a>
                            </td>
                        </tr>
                        {/volist}
                    </table>
                    <div class="page-bar">{$list->render()}</div>
                    <div class="clearfix"></div>
                </div>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
</div>
{/block}
{block name="script"}{/block}